/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package customEneities;

import entities.Nflplayer;
import entities.Nflplayerseasonstat;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 *
 * @author stumbledog
 */
@Entity
public class JoinPlayerStats implements Serializable {

    private static final long serialVersionUID = 1L;

    public JoinPlayerStats() {
    }
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    Nflplayer player;

    public Nflplayer getPlayer() {
        return player;
    }

    public void setPlayer(Nflplayer player) {
        this.player = player;
    }

    public Nflplayerseasonstat getStat() {
        return stat;
    }

    public void setStat(Nflplayerseasonstat stat) {
        this.stat = stat;
    }
    Nflplayerseasonstat stat;

    public JoinPlayerStats(Nflplayer p, Nflplayerseasonstat s) {
        this.player = p;
        this.stat = s;
    }

    @Override
    public String toString() {
        return "customEneities.JoinPlayerStats[ id=" + player + " ]";
    }
}
